package com.atguigu.mybatis.mapper;

import com.atguigu.mybatis.bean.Employee;

import java.util.List;

/**
 * Created by Smexy on 2022/12/30
 *
 *      无需为接口提供实现类。
 *      Mybatis可以通过动态代理技术，自动为接口提供实现对象！
 */
public interface EmployeeMapper
{
    Employee getEmployeeById(Integer id);

    void insertEmployee(Employee employee);

    void updateEmployee(Employee employee);

    void deleteEmployeeById(Integer id);

    List<Employee> getAll();
}
